import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/initDevice/list',
    method: 'get',
    params
  })
}
export function edit(params) {
  return request({
    url: '/initDevice/edit',
    method: 'post',
    data: params
  })
}
export function getDeviceName(params) {
  return request({
    url: '/initDevice/getDeviceName',
    method: 'get',
    params
  })
}
export function getDeviceCode(params) {
  return request({
    url: '/initDevice/getDeviceCode',
    method: 'get',
    params
  })
}
/*
 *获取工时定额列表
 */
export function SearchWorkingHoursList(params) {
  return request({
    url: '/AppTerminal/SearchWorkingHoursList',
    method: 'post',
    data: params
  })
}
/*
 *获取产品分类名称列表
 */
export function GetProductTypeList(params) {
  return request({
    url: '/AppTerminal/GetProductTypeList',
    method: 'post',
    data: params
  })
}
/*
 *获取产品名称列表
 */
export function GetProductList(params) {
  return request({
    url: '/AppTerminal/GetProductList',
    method: 'post',
    params
  })
}
/*
 *保存工时定额
 */
export function SaveWorkingHours(params) {
  return request({
    url: '/AppTerminal/SaveWorkingHours',
    method: 'post',
    params
  })
}
